package com.ttl.db.reportserver;


import java.util.List;

import org.hibernate.Session;

public class TestTableDAO {
	
	@SuppressWarnings("unchecked")
	public List find(String hql) {
		List result = null;
		@SuppressWarnings("unused")
		Session session = null;

//		try {
//			SessionFactory sessionFactory2 = HibernateUtil.getSessionFactory2();
//			session = sessionFactory2.openSession();
//			
//			session.beginTransaction();
//			
//			Query q = session.createQuery(hql);
//			result = q.list();
//			
//			session.getTransaction().commit();						
//			
//		}catch(Exception e) {			
//			System.out.println(e.toString());
//		}finally {
//			session.close();
//		}
		return result;
	}
}
